Skip to main content

All Questions

1vote
1answer
42views

Multinomial Logistic Regression sensitive to choice of Encoding

I am using the following LogisticRegression model using sklearn. The task requires to select one label from multi-labels, so if I provide a, b the output could be <...
user_04248753498's user avatar
1vote
2answers
299views

Does it make sense to tune a model in scikit-learn and copy/paste the parameters into Rust's linfa?

I have a situation where my data can only be read from in a hosted Python environment, due to data security reasons. However, I am constrained to run ML models in a Rust environment due to work-...
wtwtwt's user avatar
0votes
0answers
35views

Logistic regression with E-net regularization produces different set of weights with each run

I am currently trying to make a model to classify brain tumor patients by incidence of epilepsy using a combination of variables extracted from clinical records, and radiomics features from segmented ...
reuben george's user avatar
0votes
1answer
116views

How sklearn logistic regression computes accuracy, recall etc if we don't provide threshold?

It might be a stupid question, but I just realized that calling score function on logistic regression model shouldn't make any sense - as far as I know in sklearn ...
Brzoskwinia's user avatar
1vote
0answers
237views

scikit learn logistic regression to annotate single cell RNA seq data

I want to use scikit learn logistic regression to train a model on a labelled single cell RNA sample and subsequently apply this model on new unlabelled single cell RNA seq samples to annotate the ...
LabDancer's user avatar
0votes
1answer
4kviews

Decision tree vs logistic regression feature importances

I have trained Logistic regression and decision tree in skearn on the same standardized dataset (binary classification). Top important coefficients for the decision tree are (sorted by ...
Arseniy Maryin's user avatar
1vote
1answer
666views

Difference between sklearn's LogisticRegression and SGDClassifier?

What is the difference between sklearn's LogisticRegression classifier and its SGDClassifier? I understand that the SGD is an ...
BigBrownBear00's user avatar
3votes
1answer
1kviews

Why am I getting the exact same results with both a Logistic Regression and Decision Tree Classifier?

I am working on a binary classification problem and am using sklearn's logistic regression model and decision tree classifier. Somehow I am getting the exact same results and accuracy score on both. I ...
RandomGuy's user avatar
0votes
3answers
2kviews

Tweak machine learning algorithm in SciKit to optimize for recall

I am given a dataset to detect fraud. Something similar like this: https://www.kaggle.com/code/imgremlin/4th-place-in-fraud-detection-from-zindi The issue with SciKit machine learning algorithm is ...
Tequil's user avatar
3votes
1answer
99views

Logistic Regression using Logisticregression() class

In the documentation of Logisticregression() offered by sklearn library, it states the following note: The underlying C implementation uses a random number ...
Ahmed Mohamed's user avatar
0votes
0answers
70views

why when I find the best accuracy for logistic regression then it give me this error (AttributeError: split not found)

after run this code I face the split not found error. ...
Ibad Khan's user avatar
1vote
0answers
325views

Is it possible to "fine-tune" a pre-trained logistic regression model?

Fine tuning is a concept commonly used in deep learning. We may have a pre-trained model and then fine-tune it to our specific task. Does that apply to simple models, such as logistic regression? For ...
eduardokapp's user avatar
0votes
0answers
34views

Logistic Regression test accuracy vs deployment

I am working on a problem where I make some weekly predictions. I gathered the data myself and did some pre-processing steps and I end up with 6 features. I split the dataset 60-20-20 in train, ...
shinjitos's user avatar
2votes
1answer
335views

Does higher coefficient equate to high feature importance?

I have red in this blog post that the higher the feature coefficient the more important the feature is. However, the author did not mention why higher coefficient equates to higher importance, which ...
Amben Uchiha's user avatar
1vote
3answers
16kviews

Why is my test accuracy higher than train accuracy? SKLEARN

As the title say my code produces low train accuracy and high test accuracy. First I split my data set to train and test sets. ...
Amben Uchiha's user avatar

153050per page
close